package com.rd.student.jike.class2.xuezhixin.day0731;

import java.util.ArrayList;
import java.util.Collections;

public class Work05 {

    // shuffle 方法

    public static void main(String[] args) {
        ArrayList<Integer> list = new ArrayList<>();
        for (int i = 0;i<50;i++){
            list.add(i);
        }

        Collections.shuffle(list);
        for (int i = 0;i<20;i++){
            System.out.println((i+1) + "\t" + list.get(i));
        }
    }
}
